package com.example.buildtable.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(autoResultMap = true)
public class Advertisement {
    @TableId(type = IdType.AUTO)
    private Integer advertisementId;
    private String advertisementName;
    @TableField(value = "advertising_place_id", target = AdvertisingPlace.class)
    private Integer advertisingPlaceId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private AdvertisingPlace advertisingPlace;
    private String advertisementUrl;
    private String advertisementImage;
    private String status;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
